package com.gateway.router.base.handler;

import com.gateway.common.dto.route.RouteData;

/**
 * @program: api-gateway
 * @description:
 * @author: YuKai Fan
 * @create: 2025/2/5 15:20
 **/
public interface RouteDataHandler {

    /**
     * Handle routeData.
     *
     * @param routeData the route data
     */
    default void handle(RouteData routeData) {

    }

    /**
     * Remove routeData.
     *
     * @param routeData the route data
     */
    default void remove(RouteData routeData) {

    }

    /**
     * Refresh.
     */
    default void refresh() {
    }

    /**
     * rpc type string.
     *
     * @return the rpc type string
     * @see com.gateway.common.enums.RpcTypeEnum#getName()
     */
    String rpcType();
}
